Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve URL handling for external links in index.js #1870

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AzeemSup
Copy link

Enhanced URL handling in index.js:

  • Added checks in getUrlInfo for malformed URLs.
  • Refined extractMainDomainFromUrl for better domain extraction.
  • Ensured external links apply target attributes correctly.
  • Improved logging to simplify debugging.

This PR includes housekeeping improvements to URL handling in the script, following the guidelines in [CONTRIBUTING.md].

Improved URL handling with error checks for malformed links in `getUrlInfo`, refined domain extraction in `extractMainDomainFromUrl`, and ensured external link attributes apply correctly. Enhanced logging for easier debugging.

Signed-off-by: Muhammad Azeem <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants